<script setup lang="ts">
  import PDFViewer from './PDFViewer.vue';

  /*   const PDFSrc = ref(
    'http://127.0.0.1:8080/PLM_GG_Api/rest/preview/view/21341241232143124123/10/view',
  ); */
  defineProps({
    PDFSrc: String,
  });

  function onLoaded(pdfApp: any) {
    console.log('loaded app:', pdfApp);
  }
</script>
<template>
  <div>
    <PDFViewer
      page-scale="page-fit"
      :width="'100%'"
      :height="'85vh'"
      theme="dark"
      :src="PDFSrc"
      @loaded="onLoaded"
    />
  </div>
</template>
<style>
  .download-button {
    display: none !important;
  }
  .print-button {
    display: none !important;
  }
  .open-file {
    display: none !important;
  }
  .bookmark-button {
    display: none !important;
  }
  .toolbar {
    position: relative;
    left: 0;
    right: 0;
    z-index: 1;
    cursor: default;
  }
</style>
